package com.yanmaohu.yulia.bean;

/**
 * @author Bright Lee
 */
public final class NamedColumnsJoin implements JoinSpecification {

    private int beginIndex;
    private int endIndex;
    private IdentifierList joinColumnList;

    public NamedColumnsJoin(int beginIndex,
                            int endIndex,
                            IdentifierList joinColumnList) {
        this.beginIndex = beginIndex;
        this.endIndex = endIndex;
        this.joinColumnList = joinColumnList;
    }

    @Override
    public int getBeginIndex() {
        return beginIndex;
    }

    @Override
    public int getEndIndex() {
        return endIndex;
    }

    public IdentifierList getJoinColumnList() {
        return joinColumnList;
    }

}
